package tech.aistar.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


@Controller
public class FirstController {

    @GetMapping("/firsts")
    public String first(){
        //转发到WEB-INF的目录下的某个Jsp

        //转发的方式..
        //return "/WEB-INF/first.jsp";

        //前提:配置好了前缀和后缀
        return "first";
    }
    @GetMapping("/firsts2")
    public String first2(){
        //转发到WEB-INF的目录下的某个Jsp

        //转发的方式..
        //return "/WEB-INF/first.jsp";

        //前提:配置好了前缀和后缀
        return "first2";
    }
}
